package com.sunl.mall.common.request;

import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CommonPrimaryKeyRequest <T> extends CommonRequest implements Serializable {
    @NotNull(message = "ID不能为空")
    private T id;

    public T getId() {
        return this.id;
    }

    public void setId(T id) {
        this.id = id;
    }

}
